<div class="wrapper">
    <div>
        <div class="box box-top">
            <!-- /.box-header -->
            <!-- form start -->
            <form id="orderLogForm" role="form" action="${base}/admin/orderLog/save" method="post">
                <input type="hidden" name="id" value="${(orderLog.id)!}">
                <div class="box-body">
                            <div class="form-group">
                                <label for="riderId">骑手Id</label>
                                <input type="text" value="${(orderLog.riderId)!}" class="form-control" name="riderId" id="riderId">
                            </div>

                            <div class="form-group">
                                <label for="memo">Note</label>
                                <input type="text" value="${(orderLog.memo)!}" class="form-control" name="memo" id="memo">
                            </div>

                            <div class="form-group">
                                <label for="takeId">取电池Id</label>
                                <input type="text" value="${(orderLog.takeId)!}" class="form-control" name="takeId" id="takeId">
                            </div>

                            <div class="form-group">
                                <label for="backId">还电池Id</label>
                                <input type="text" value="${(orderLog.backId)!}" class="form-control" name="backId" id="backId">
                            </div>

                            <div class="form-group">
                                <label for="takeNo">取电池no</label>
                                <input type="text" value="${(orderLog.takeNo)!}" class="form-control" name="takeNo" id="takeNo">
                            </div>

                            <div class="form-group">
                                <label for="backNo">还电池no</label>
                                <input type="text" value="${(orderLog.backNo)!}" class="form-control" name="backNo" id="backNo">
                            </div>

                            <div class="form-group">
                                <label for="createDate">创建日期</label>
                                <input type="text" value="${(orderLog.createDate)!}" class="form-control" name="createDate" id="createDate">
                            </div>

                            <div class="form-group">
                                <label for="openId">充值openID</label>
                                <input type="text" value="${(orderLog.openId)!}" class="form-control" name="openId" id="openId">
                            </div>

                            <div class="form-group">
                                <label for="phone">手机号码</label>
                                <input type="text" value="${(orderLog.phone)!}" class="form-control" name="phone" id="phone">
                            </div>

                            <div class="form-group">
                                <label for="riderName">骑手Name</label>
                                <input type="text" value="${(orderLog.riderName)!}" class="form-control" name="riderName" id="riderName">
                            </div>

                            <div class="form-group">
                                <label for="status">Status</label>
                                <input type="text" value="${(orderLog.status)!}" class="form-control" name="status" id="status">
                            </div>

                    <div class="box-footer">
                        <button type="button" onclick="$('#orderLogForm').submit();" class="btn btn-primary">Save
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $("#orderLogForm").validate({
            submitHandler:function(form){
                submitOrderLog();
            }
        });
    });
    function submitOrderLog(){
        HF.ajaxFormSubmit('orderLogForm',function(result){
            alert("Save Success");
            document.location.reload();
        },function(e){ alert("Save Failure");});
    }
</script>
